<?php include $this->tpl('public:common.php') ?>
<div class="well">
    <ul class="nav nav-tabs">
      <li class="active"><a href="#system" data-toggle="tab">系统设置</a></li>
      <li><a href="#site" data-toggle="tab">网站设置</a></li>
	  <li><a href="#static" data-toggle="tab">其它设置</a></li>
    </ul>
    <div id="myTabContent" class="tab-content">
    	<div class="tab-pane active in" id="system">
			<form id="tab" method="post" action="" autocomplete="off">
				<label>积分别名：</label>	
				<input type="text" name="point_alias" value="<?=config('point_alias')?>" class="input-mini">
				<label>积分单位：</label>	
				<input type="text" name="point_unit" value="<?=config('point_unit')?>" class="input-mini">
				<label>积分比例：</label>	
				1人民币 = <input type="text" name="point_ratio" value="<?=config('point_ratio')?>" class="input-mini"> 积分
				<label>兑换比率：</label>	
				<input type="text" name="exchange_ratio" value="<?=config('exchange_ratio')?>" class="input-mini"> %
				<div class="btn-toolbar">
				<button type="submit" class="btn btn-primary"><i class="icon-save"></i> 保存</button>
				<div class="btn-group"></div>
				</div>
			</form>
		</div>

	    <div class="tab-pane fade" id="site">
			<form id="tab" method="post" action="" autocomplete="off">
				<label>网站名称</label>	
				<input type="text" name="site_name" value="<?=config('site_name')?>" class="input-xlarge">

				<label>ICP证书号</label>	
				<input type="text" name="site_icp" value="<?=config('site_icp')?>" class="input-xlarge">

				<label>网站标题</label>	
				<input type="text" name="site_title" value="<?=config('site_title')?>" class="input-xxlarge">

				<label>网站描述</label>	
				<input type="text" name="site_description" value="<?=config('site_description')?>" class="input-xxlarge">

				<label>网站关键词</label>	
				<input type="text" name="site_keywords" value="<?=config('site_keywords')?>" class="input-xxlarge">

				<label>统计代码</label>	
				<textarea name="state_code" rows="7" class="input-xxlarge" autofocus="true"><?=config('state_code')?></textarea>
				
				<div class="btn-toolbar">
				<button type="submit" class="btn btn-primary"><i class="icon-save"></i> 保存</button>
				<div class="btn-group"></div>
				</div>
			</form>
		</div>

		<div class="tab-pane fade" id="static">
			<form id="tab" method="post" action="" autocomplete="off" enctype="multipart/form-data">
				<label>静态资源地址</label>	
				<input type="text" name="static_url" value="<?=config('static_url')?>" class="input-xxlarge" placeholder="css,js,css图片资源的地址,http开头">
				<label>网站LOGO</label>	
				<input type="file" name="logo_file" class="input-xlarge"><?=$log_file = config('site_logo');if($log_file):?><img src="<?=$log_file?>" height="40" style="height:40px;"><?php endif?>
				<div class="btn-toolbar">
				<button type="submit" class="btn btn-primary"><i class="icon-save"></i> 保存</button>
				<div class="btn-group"></div>
				</div>
			</form>
		</div>
  </div>
</div>
</div>
<?php include $this->tpl('public:footer.php') ?>